import * as types from "../actionTypes"
const initialState = [] // 认为它本身就是一个新闻列表
export default function article(state = initialState, action) {
  switch (action.type) {
    case types.GETARTICLE:
      return action.payload
    default:
      return state
  }
}
